package com.csmzxy.soft.comm;

public class SavingAccount extends Account {
    private double interestRate;
    public SavingAccount(String id,String pwd,double initerestRate,double rate){
        super(id,pwd,initerestRate);
        this.interestRate=rate;
    }
    public double getinterestRate(){
        return interestRate;
    }
    public void setInterestRate(double interestRate){
        this.interestRate=interestRate;
    }
    public double calcInterests(){
        return balance*interestRate;
    }
}
